import request from '/@/utils/request';
export function MECApi(){
    return {
        getTableList:(params:object)=>{
            return request({
                url: '/api/admin/roadside/mecs',
                method: 'get',
                params,
            });
        },
        addMec:(data:object)=>{
            return request({
                url: '/api/admin/roadside/mec',
                method: 'post',
                data,
            });
        },
        editMec:(data:object)=>{
            return request({
                url: '/api/admin/roadside/mec',
                method: 'put',
                data,
            });
        },
        delMec:(data:object)=>{
            return request({
                url: '/api/admin/roadside/mec',
                method: 'delete',
                data,
            });
        },
    }
}